package springTaskExecutor;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableAsync;
import springTaskExecutor.example.AsyncExample;
import springTaskExecutor.example.TaskExecutorExample;

/**
 * @author CKC
 * @DateTime 2021/12/12 17:10
 */
//@SpringBootApplication
//@EnableAsync
public class TaskExecutorSpringBootApp {
    //public static void main(String[] args) {
    //    ConfigurableApplicationContext context = SpringApplication.run(TaskExecutorSpringBootApp.class, args);
    //    TaskExecutorExample taskExecutorExample = context.getBean(TaskExecutorExample.class);
    //    taskExecutorExample.printMessages();
    //    System.out.println("-------------");
    //    AsyncExample asyncExample = context.getBean(AsyncExample.class);
    //    asyncExample.getInfo("123");
    //}
}
